<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('转移区域')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-article-edit" th:object="${cstArticle}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">区域：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <select name="tpe" class="form-control m-b" th:field="*{areaId}">
                            <option th:each="dept:${depts}" th:value="${dept.deptId}" th:text="${dept.deptName}"></option>
                        </select>
                    </div>
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "article/article";
        $("#form-article-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/transfer", $('#form-article-edit').serialize());
            }
        }
    </script>
</body>
</html>